package com.link.base.base.email.service;

import com.link.base.base.email.model.EmailInfo;
import com.link.core.basic.service.BasicService;

/**
 * 邮件相关服务
 * @author unknwon
 * @version 1.0
 * @date: 2018/11/12 9:40
 */

public interface EmailService extends BasicService<EmailInfo> {
    /**
     * 发送邮件
     * @author      yipeng.zhu@hand-china.com
     * @param       entity
     * @return      
     * @exception
     * @date        2019/2/21 11:45
     * @version     1.0
     */
    void sendMail(EmailInfo entity) throws Exception;

    /**
     * 根据模板发送邮件
     * @param emailInfo
     * @throws Exception
     */
    public void sendEmailByTemplate(EmailInfo emailInfo) throws Exception;
}
